/**
 * @className Order_item
 * @author liuxuelin
 * @Date 2021/1/16
 * @version v1.0
 */

package com.hidt.shop.domain;

public class Order_item {
    private int order_item_id;//订单明细号
    private String order_id;//订单号（ID）
    private int goods_id;//商品ID
//    private String goods_name;//商品名
    private float original_price;//商品原价
    private float discounted_price;//商品打折价
    private int item_count;//商品数量
    private int itemis_delete;//数据是否：1为删除，0是不删除
    private Goods goods;

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getOrder_item_id() {
        return order_item_id;
    }

    public void setOrder_item_id(int order_item_id) {
        this.order_item_id = order_item_id;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

//    public String getGoods_name() {
//        return goods_name;
//    }
//
//    public void setGoods_name(String goods_name) {
//        this.goods_name = goods_name;
//    }

    public float getOriginal_price() {
        return original_price;
    }

    public void setOriginal_price(float original_price) {
        this.original_price = original_price;
    }

    public float getDiscounted_price() {
        return discounted_price;
    }

    public void setDiscounted_price(float discounted_price) {
        this.discounted_price = discounted_price;
    }

    public int getItem_count() {
        return item_count;
    }

    public void setItem_count(int item_count) {
        this.item_count = item_count;
    }

    public int getItemis_delete() {
        return itemis_delete;
    }

    public void setItemis_delete(int itemis_delete) {
        this.itemis_delete = itemis_delete;
    }

    public Order_item() {
    }

    public Order_item(int order_item_id, String order_id, int goods_id, float original_price, float discounted_price,
                      int item_count, int itemis_delete) {
        this.order_item_id = order_item_id;
        this.order_id = order_id;
        this.goods_id = goods_id;
//        this.goods_name = goods_name;
        this.original_price = original_price;
        this.discounted_price = discounted_price;
        this.item_count = item_count;
        this.itemis_delete = itemis_delete;
    }

    @Override
    public String toString() {
        return "Order_item{" +
                "order_item_id=" + order_item_id +
                ", order_id=" + order_id +
                ", goods_id=" + goods_id +
//                ", goods_name='" + goods_name + '\'' +
                ", original_price=" + original_price +
                ", discounted_price=" + discounted_price +
                ", item_count=" + item_count +
                ", itemis_delete=" + itemis_delete +
                '}';
    }
}
